package com.demo.index.remote;

import com.demo.entity.TestDTO;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "data-center")
public interface TestRemote {

    /**
     * 调用数据中心服务的接口示例
     * @param testDTO
     * @return
     */
    @RequestMapping(value="/test/info", method = RequestMethod.POST)
    public String test(@RequestBody TestDTO testDTO);
}
